package com.ls.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author pengyu
 * @since 2020-05-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class City extends Model<City> {

    private static final long serialVersionUID = 1L;

    /**
     * 城市区号，例如028
     */
    @TableId(value = "city_code")
    private String cityCode;

    /**
     * 城市名称，例如成都
     */
    private String cityName;

    /**
     * 省份编码
     */
    private Integer provinceCode;


    @Override
    protected Serializable pkVal() {
        return this.cityCode;
    }

}
